public class ProductComsumable : ProductEquippableWeapon
{
	public SaveInt addCount;

	public float area;

	public int maxCount = 999;

	public override bool Purchased
	{
		get
		{
			return false;
		}
		set
		{
		}
	}

	public int Count
	{
		get
		{
			return settings.GetConsumableCount(id);
		}
	}

	public ProductComsumable(string id_G, MoneyType priceIng_G, int price_G, bool availableForBuy_G, float sortWeight_G, string texture_G, string nameForFlurry_G, bool isTemporary_G, int tier_G, bool bestPrice_G, bool newProduct_G, string nextProductId_G, string prevProductId_G, string categoryName_G, string subCategoryName_G, RareType rare_G, float damage_G, float fakeDamage_G, DamageType damageType_G, SaveInt addCount_G, float area_G, int maxCount_G)
		: base(id_G, priceIng_G, price_G, availableForBuy_G, sortWeight_G, texture_G, nameForFlurry_G, isTemporary_G, tier_G, bestPrice_G, newProduct_G, nextProductId_G, prevProductId_G, categoryName_G, subCategoryName_G, rare_G, damage_G, fakeDamage_G, damageType_G)
	{
		addCount = addCount_G;
		area = area_G;
		maxCount = maxCount;
	}

	public override void BuyProduct(params object[] args)
	{
		int num = ((args.Length > 0) ? ((int)args[0]) : 0);
		settings.addConsumable((num <= 0) ? ((int)addCount) : num, id, maxCount);
		MarketController.Instance.ChangeConsumableCount(id);
	}
}
